<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>       
      <link rel="stylesheet" href="${initParam.root}/css/table.css" type="text/css">

<script type="text/javascript">
$(document).ready(function(){
	$("#sendMessageForm").submit(function(){	
		alert("쪽지를 전송합니다.");
		self.close();
	});	
	$("#cancelMsg").click(function(){
		self.close();
	});	
});//ready
</script>
</head>

<form id="sendMessageForm" method="post" action="${initParam.root}common/postAnswer.do">
<input type="hidden" name="sendAuthNumber" value="${requestScope.postBoxVO.receiveAuthNumber }">
<input type="hidden" name="receiveAuthNumber" value="${requestScope.postBoxVO.sendAuthNumber}">
<table border='1'  class="registerMemberTable"  style="margin: 0 auto ; width: 600px" >
		<tr>
			<td><input type=hidden name=receiverId value="${requestScope.postBoxVO.senderId}">
			To : ${requestScope.postBoxVO.receiverId} </td>
			<!-- 발신자 구별 -->		
			<td>From :
				<input type=hidden name=senderId value="${requestScope.postBoxVO.receiverId}">
				${requestScope.postBoxVO.senderId}
				</td>		
	  </tr>
	  <tr>
	  	<td colspan="2">Title <input type="text" id="postTitle" name="postTitle" width="50"  value="RE : ${requestScope.postBoxVO.postTitle }" required="required"></td>
	  </tr>
	    <tr>
	  	<td>Content</td><td><pre> <textarea rows="10" cols="40" name="postContent" id="postContent"  required="required"></textarea></pre></td>
	  </tr>
	<tr>
			<td colspan="2"  align="right"><input type="submit" id="sendMsg" value="쪽지보내기">
			<input type="button" id="cancelMsg" value="취소"></td>
  	</tr>
		</table>
		
</form>